package com.freight.order.dao;

import com.freight.core.base.FreightBaseDao;
import com.freight.order.entity.OrderGoods;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 货物续期需求数据处理层
 *
 * @author huyingtai
 */
public interface OrderGoodsDao extends FreightBaseDao<OrderGoods, Long> {


    @Query(value = "select g from OrderGoods g " +
            "where g.id in (:goodIds) " +
            "and  g.status <> 2 ")
    List<OrderGoods> getGoodByIds(@Param("goodIds") List<Long> goodIds);





}